package cn.wolfcode.car.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
public class Employee {
    public static final Integer STATUS_YES = 1; // 已冻结
    public static final Integer STATUS_NO = 0; // 未冻结
    /** */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** */
    private String name;

    /** */
    private String email;

    /** */
    private Integer age;

    /** 性别*/
    private Integer gender;

    /** */
    private Integer admin;

    /** */
    private Integer status = STATUS_NO;

    /** */
    private Long deptId;

    @TableField(exist = false)
    private Department dept;

    /** */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date hiredate;

}